package com.example.project;

import android.app.Activity;
import android.content.res.Configuration;
import android.os.Bundle;

public class DescActivity extends Activity {
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		if (getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE) {
			finish();//land애가 잘못 들어옴 님 빠이
			return;
		}
		int index = getIntent().getExtras().getInt("index");
		String list_no = getIntent().getExtras().getString("listno");
		DescFragment details = DescFragment.newInstance(index, list_no);
		getFragmentManager().beginTransaction()
				.add(android.R.id.content, details).commit();
	}
}